﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="classtraining_staff_register.aspx.cs"
    Inherits="Catering.UserTraining.SlrClassTraining.classtraining_staff_register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/css_modal.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="../../../Style/center.css" />
    <link href="../css/css_common.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../js/js_common.js" type="text/javascript"></script>
    <script src="../js/js_modal.js" type="text/javascript"></script>
    <script type="text/javascript">
        function AddInfo() {
            $_M.Open('classtraining_staff_register_add.aspx?LessionID=' + $("#hf_LessosnID").val(), 520, 320);
            return false;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="padding-left: 0px; margin: 10px auto; width: 998px; height: 30px; line-height: 30px;
        font-size: 13px; font-weight: bold; padding-top: 0px; background: url(/Images/div_h1_bg_02.gif);">
        &nbsp;&nbsp;当前位置：<asp:Label ID="lblClassName" runat="server" Text="Label"></asp:Label>班组
        <asp:Label ID="lblLessonName" runat="server" Text="Label"></asp:Label>培训学员登记表
        <asp:HiddenField ID="hf_ClassID" runat="server" />
        <asp:HiddenField ID="hf_LessosnID" runat="server" />
    </div>
    <div style="padding-left:0px; margin: 10px auto; width: 996px; border:1px solid #C2DEF6; background-color:#E5F1FD; line-height: 30px; padding-top: 0px;">
        <table align="right">
            <tr>
                <td><asp:Button ID="btnAdd" runat="server" CssClass="input_btn_a" Text="添加学员" OnClientClick="return AddInfo();" OnClick="btnAdd_Click" /></td>
                <td>
                    <asp:Button ID="btn_Return" runat="server" CssClass="input_btn_a" Text="返回" onclick="btn_Return_Click" /></td>
                <td width="10"></td>
            </tr>
        </table>
        <div class="clear"></div>
        <div style="min-height:400px;">
            <table cellpadding="0" cellspacing="0" style="overflow: hidden; margin: 0 auto; width:996px;
            border-left: 1px solid #8b8888; border-top: 1px solid #8b8888; margin: auto;
            font-size: 12px;">
                <tr style="background: url(../../../Images/th_02bg.gif) repeat-x 0px 0px; height: 29px;">
                    <th style="border-bottom: 1px solid #8b8888; border-right: 1px solid #8b8888">
                        序号
                    </th>
                    <th style="border-bottom: 1px solid #8b8888; border-right: 1px solid #8b8888">
                        姓名
                    </th>
                    <th style="border-bottom: 1px solid #8b8888; border-right: 1px solid #8b8888">
                        是否登记
                    </th>
                    <th style="border-bottom: 1px solid #8b8888; border-right: 1px solid #8b8888">
                        备注
                    </th>
                    <th style="border-bottom: 1px solid #8b8888; border-right: 1px solid #8b8888">
                        操作
                    </th>
                </tr>
                <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                    <ItemTemplate>
                        <tr>
                            <td style="border-bottom: 1px solid #8b8888; border-right: 1px solid #8b8888">
                                <%# Container.ItemIndex + 1%>
                            </td>
                            <td style="border-bottom: 1px solid #8b8888; border-right: 1px solid #8b8888">
                                <%# Eval("UserID")%>
                            </td>
                            <td style="border-bottom: 1px solid #8b8888; border-right: 1px solid #8b8888">
                                <%# Eval("IsRegister").ToString() == "0" ? "否" : "是" %>
                            </td>
                            <td style="border-bottom: 1px solid #8b8888; border-right: 1px solid #8b8888">
                                <%# Eval("Remark")%>
                            </td>
                            <td style="border-bottom: 1px solid #8b8888; border-right: 1px solid #8b8888">
                                <asp:ImageButton ID="ImageButton2" runat="server" ToolTip='<%# Eval("IsRegister").ToString() == "0" ? "否" : "是" %>'
                                    ImageUrl="../../../Images/file.gif" CommandArgument='<%#Eval("LessonID")+","+Eval("UserID")%>'
                                    CommandName="edit" CssClass="pointer" />
                                &nbsp; &nbsp; &nbsp;
                                <asp:ImageButton ToolTip="删除" ID="ImageButton1" runat="server" ImageUrl="../../../Images/trash.gif"
                                    OnClientClick="return confirm('确认删除？');" CommandArgument='<%#Eval("LessonID")+","+Eval("UserID")%>>'
                                    CommandName="del" CssClass="pointer" />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
